package com.starlink.config;

import com.lop.open.api.sdk.DefaultDomainApiClient;
import com.starlink.client.jd.properties.JdProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.io.IOException;

@Configuration
public class ThirdClientConfig {
    @Autowired
    private JdProperties jdProperties;

    @Bean
    public DefaultDomainApiClient jdClient() throws IOException {
        DefaultDomainApiClient client = new DefaultDomainApiClient(jdProperties.getUrl(), 500, 15000);
        return client;
    }
}
